#import <Flutter/Flutter.h>
#import <PAGSShortPlay/PAGSShortPlay.h>

@class PAGSShort;

@interface FlutterPanglePlugin : NSObject<FlutterPlugin>

+ (NSDictionary*)convertShortToMap:(PAGSShort*)drama;
+ (PAGSShort*)convertMapToShort:(id)mapOrJsonString;
+ (PAGSDetailFragment*)createFragmentForViewId:(int64_t)viewId
                                          short:(PAGSShort*)shortPlay
                                         config:(PAGSDetailPageConfig*)config
                                       delegate:(id<PAGSDetailFragmentDelegate, PAGSAdDelegate>)delegate;
+ (void)removeFragmentForViewId:(int64_t)viewId;
+ (PAGSDetailFragment*)fragmentForViewId:(int64_t)viewId;
+ (void)logText:(NSString*)format, ... NS_FORMAT_FUNCTION(1,2);

@end

